package dao;

import java.util.List;

import model.Product;

public interface IProductDAO {
	 public void addProduct(final String name, final double price, final String description,final String m_id);
	 public Product getOneProduct(final int id);
	 public void deleteProduct(final String id);
	 public void deleteProductByMID(final int id);
	 public void updateProduct(
			   final String name,
			   final double price,
			   final String desc,
			   final int id,
			   final String m_id
			   );
	 public List<Product> getAllProductBy_U_ID(final int u_id) ;
	 public List<Product> getAllProductByPrice(final double startPrice, final double endPrice);
	 public List<Product> getAllProductByName(final String name);
	 public List<Product> getAllProductBy_M_ID(final int m_id);
	 public List<Product> getAllProductByCondition(final int m_id, final String productName, final int startPrice, final int endPrice);
	 public List<Product> getAllProduct();
	 public List<String> getNameProductMatched(String query);
	 
	 
}
